package com.xbongbong.pro.statistic.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 图发布到首页入参
 *
 * @author 徐俊杰
 * @version v1.0
 * @date 2019/4/29 15:35
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ChartPublishDTO extends BaseDTO {
    private static final long serialVersionUID = -111524507833278486L;
    /**
     * 图表id
     */
    @NotNull(message = "{dto.msg.chartPublish.chartId.NotNull}")
    private Long chartId;
    /**
     * 发布还是取消发布
     */
    @NotNull(message = "{dto.msg.chartPublish.publish.NotNull}")
    private Integer publish;
    /**
     * 发送到头部还是尾部
     */
    private Integer head;

    /**
     * 自定义、系统标志
     * @see com.xbongbong.pro.statistic.enums.StatisticsTypeEnum
     */
    @NotNull(message = "{dto.msg.chartPublish.statisticsType.NotNull}")
    private Integer statisticsType;
}
